<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>
    <title>Title</title>
    <base href="<%=request.getContextPath()%>/"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>风险管理平台</title>
    <link href="themes/css/login.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-2.1.4.js"></script>
</head>

<body>
<div id="login">
    <div id="login_header">
        <h1 class="login_logo">
            <a href="http://demo.dwzjs.com"><img src="themes/default/images/login_logo.gif" /></a>
        </h1>
        <div class="login_headerContent">
            <div class="navList">
                <ul>
                    <li><a href="#">设为首页</a></li>
                    <li><a href="http://bbs.dwzjs.com">反馈</a></li>
                    <li><a href="doc/dwz-user-guide.pdf" target="_blank">帮助</a></li>
                </ul>
            </div>
            <h2 class="login_title"><img src="themes/default/images/login_title.png" /></h2>
        </div>
    </div>
    <div id="login_content">
        <div class="loginForm">
            <form action="">
                <p>
                    <label>用户名：</label>
                    <input type="text" name="username" id="username"size="20" class="login_input" />
                </p>
                <p>
                    <label>密码：</label>
                    <input type="password" name="password" id="password" size="20" class="login_input" />
                </p>
                <div class="login_bar">
                    <input class="sub" id="submit" type="button" value=" " />
                </div>
            </form>
            <script>
                $("#submit").click(function () {
                    $.post("shiro/managerLogin",{username:$("#username").val(),password:$("#password").val()},
                    function (data) {
                        if(data=="success"){
                            window.location.href="article/mangerIndex";
                        }else {
                            alert("账号密码不匹配")
                        }
                    })
                })
            </script>
        </div>
        <div class="login_banner"><img src="themes/default/images/login_banner.jpg" /></div>
        <div class="login_main">
            <ul class="helpList">
                <li><a href="#">下载驱动程序</a></li>
                <li><a href="#">如何安装密钥驱动程序？</a></li>
                <li><a href="#">忘记密码怎么办？</a></li>
                <li><a href="#">为什么登录失败？</a></li>
            </ul>
            <div class="login_inner">
                <p>您可以使用 网易网盘 ，随时存，随地取</p>
                <p>您还可以使用 闪电邮 在桌面随时提醒邮件到达，快速收发邮件。</p>
                <p>在 百宝箱 里您可以查星座，订机票，看小说，学做菜…</p>
            </div>
        </div>
    </div>
    <div id="login_footer">
        Copyright &copy; 2009 www.dwzjs.com Inc. All Rights Reserved.
    </div>
</div>
</body>
</html>